<?php if (get_theme_mod('tabber') == 'Yes') { ?>
<div class="tabber">
	<ul id="tabs" class="tabs">
		<li><a href="#popular-posts" rel="popular-posts" class="selected"><?php _e('Popular', 'themejunkie'); ?></a></li>
		<li><a href="#recent-comments" rel="recent-comments"><?php _e('Comments', 'themejunkie'); ?></a></li>
		<li><a href="#monthly-archives" rel="monthly-archives"><?php _e('Archives', 'themejunkie'); ?></a></li>
	</ul>
	<div class="clear"></div>
	<ul id="popular-posts" class="tabcontent">
		<?php tj_popular_posts(get_theme_mod('tab1')); ?>
	</ul>
	<ul id="recent-comments" class="tabcontent">
		<?php tj_recent_comments(get_theme_mod('tab2')); ?>
	</ul>
	<ul id="monthly-archives" class="tabcontent">
		<?php wp_get_archives('type=monthly&limit='.get_theme_mod('tab3')); ?>
	</ul>
<script type="text/javascript">
	var tabs=new ddtabcontent("tabs")
	tabs.setpersist(false)
	tabs.setselectedClassTarget("link")
	tabs.init()
	</script>
</div> <!--end: tabber-->
<div class="clear"></div>
<?php } ?>
